﻿using System.Collections.Generic;
using Serilog;
using Serilog.Events;

namespace TestLog
{
    public class LogFileConfig
    {
        /// <summary>
        /// 文件夹名称
        /// </summary>
        public string DirName { get; set; }


        /// <summary>
        /// 日志级别
        /// </summary>
        public LogEventLevel LogEventLevel { get; set; }

        /// <summary>
        /// 保留日志单位
        /// Infinite,Year,Month,Day,Hour,Minute
        /// </summary>
        public RollingInterval RollingInterval { get; set; }

        /// <summary>
        /// 保留日志数值
        /// </summary>
        public int RetainedFileCountLimit { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool Enable { get; set; }

        /// <summary>
        /// 过滤日志级别
        /// </summary>
        public Dictionary<string, LogEventLevel> FilterLogLevelDic { get; set; }
    }
}
